package com.zsrt.day20170405;

import java.util.Scanner;

/**
 * 
 * @author jmj
 *
 */
public class IfDemo02 {
	public static void main(String[] args) {
		 Scanner in = new Scanner(System.in); 
		 System.out.println("若该人的性别是女"); 
		
		           // char sex = in.next().charAt(0);
		 boolean sex = true;
		 
		if(sex ){
			System.out.println("请输入该人的年龄：");
			int age = in.nextInt();
			if(age >=18){
				System.out.println("请输入该人的学历");
				int xueli = in.nextInt();
				if(xueli >=3){
					System.out.println("符合条件参加选美比赛");
				}else{
					System.out.println("不符合条件参加选美比赛");
				}
			}else{
				System.out.println("不符合条件参加选美比赛");
			}  	  
		  }else {
			  System.out.println("不符合条件参加选美比赛");
		  }
		in.close();
	}	
}
